package com.ks.app.product.hibernate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * KsAdImage entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "K_Room_IMAGE")
public class KRoomImage implements java.io.Serializable {

	// Fields
	private static final long serialVersionUID = 7191028929326802737L;
	
	private long roomimgid;//主键ID
	private long roomid;//房间表的ID
	private String imageName;
	private String imagepath;//图片存储路径

	// Constructors

	/** default constructor */
	public KRoomImage() {
	}

	/** minimal constructor */
	public KRoomImage(long roomid) {
		this.roomid = roomid;
	}


	public KRoomImage(long roomimgid, long roomid, String imageName,
			String imagepath) {
		super();
		this.roomimgid = roomimgid;
		this.roomid = roomid;
		this.imageName = imageName;
		this.imagepath = imagepath;
	}

	@Id
	@GeneratedValue
	public long getRoomimgid() {
		return roomimgid;
	}

	public void setRoomimgid(long roomimgid) {
		this.roomimgid = roomimgid;
	}

	public long getRoomid() {
		return roomid;
	}

	public void setRoomid(long roomid) {
		this.roomid = roomid;
	}

	public String getImagepath() {
		return imagepath;
	}

	public void setImagepath(String imagepath) {
		this.imagepath = imagepath;
	}

	public String getImageName() {
		return imageName;
	}

	public void setImageName(String imageName) {
		this.imageName = imageName;
	}
	
	
	
}